<div id="content-div">
{html}
</div>


<script type="text/javascript">
$(document).ready(function() {             
   <?php if(isset($temp)){
   foreach($temp as $idt){ ?>
                $('.comparelink<?php echo $idt;?>').removeAttr("onclick");
                $('#compare<?php echo $idt;?>').addClass("disable");
   <?php }} ?>
   });
   </script> 
